import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history', //去掉路径中的#
  routes: [{
      path: '/',
      name: 'home',
      component: function(resolve) {
        require(['@/components/home.vue'], resolve)
      }
    },
    {
      path: '/tourl/tdetail',
      name: 'tdetail',
      component: function(resolve) {
        require(['@/components/thoughtDetail.vue'], resolve)
      }
    },
    {
      path: '/tourl/personHome',
      name: 'personHome',
      component: function(resolve) {
        require(['@/components/personHome.vue'], resolve)
      }
    },
    {
      path: '/tourl/scanStore',
      name: 'scanStore',
      component: function(resolve) {
        require(['@/components/scanStore.vue'], resolve)
      }
    },
    {
      path: '/tourl/storeList',
      name: 'storeList',
      component: function(resolve) {
        require(['@/components/storeList.vue'], resolve)
      }
    },
    {
      path: '/test',
      name: 'test',
      component: function(resolve) {
        require(['@/components/test.vue'], resolve)
      }
    },
    {
      path: '/tourl/storeThoughts',
      name: 'storeThoughts',
      component: function(resolve) {
        require(['@/components/storeThoughts.vue'], resolve)
      }
    },
    {
      path: '/tourl/storeImages',
      name: 'storeThoughts',
      component: function(resolve) {
        require(['@/components/storeImages.vue'], resolve)
      }
    },
    {
      path: '/tourl/myself',
      name: 'myself',
      component: function(resolve) {
        require(['@/components/myself.vue'], resolve)
      }
    },
    {
      path: '/tourl/myThoughts',
      name: 'myThoughts',
      component: function(resolve) {
        require(['@/components/myThoughts.vue'], resolve)
      }
    },
    {
      path: '/tourl/myAttention',
      name: 'myAttention',
      component: function(resolve) {
        require(['@/components/myAttention.vue'], resolve)
      }
    },
    {
      path: '/tourl/myTrace',
      name: 'myTrace',
      component: function(resolve) {
        require(['@/components/myTrace.vue'], resolve)
      }
    },
    {
      path: '/tourl/myThoughtDetail',
      name: 'myThoughtDetail',
      component: function(resolve) {
        require(['@/components/myThoughtDetail.vue'], resolve)
      }
    },
    {
      path: '/tourl/iToOtherComment',
      name: 'iToOtherComment',
      component: function(resolve) {
        require(['@/components/iToOtherComment.vue'], resolve)
      }
    },
    {
      path: '/tourl/otherToIComment',
      name: 'otherToIComment',
      component: function(resolve) {
        require(['@/components/otherToIComment.vue'], resolve)
      }
    },
    {
      path: '/tourl/publishThought',
      name: 'publishThought',
      component: function(resolve) {
        require(['@/components/publishThought.vue'], resolve)
      }
    },
    {
      path: '/tourl/charcoalList',
      name: 'charcoalList',
      component: function(resolve) {
        require(['@/components/charcoalList.vue'], resolve)
      }
    },
    {
      path: '/tourl/charcoalDetail',
      name: 'charcoalDetail',
      component: function(resolve) {
        require(['@/components/charcoalDetail.vue'], resolve)
      }
    },
    {
      path: '/tourl/comfireOrder',
      name: 'comfireOrder',
      component: function(resolve) {
        require(['@/components/comfireOrder.vue'], resolve)
      }
    },
    {
      path: '/tourl/addressList',
      name: 'addressList',
      component: function(resolve) {
        require(['@/components/addressList.vue'], resolve)
      }
    },
    {
      path: '/tourl/operateAddress',
      name: 'operateAddress',
      component: function(resolve) {
        require(['@/components/operateAddress.vue'], resolve)
      }
    },
    {
      path: '/tourl/myOrder',
      name: 'myOrder',
      component: function(resolve) {
        require(['@/components/myOrder.vue'], resolve)
      }
    },
    {
      path: '/tourl/addStore',
      name: 'addStore',
      component: function(resolve) {
        require(['@/components/addStore.vue'], resolve)
      }
    },
    {
      path: '/tourl/myStore',
      name: 'myStore',
      component: function(resolve) {
        require(['@/components/myStore.vue'], resolve)
      }
    },
    {
      path: '/tourl/updateStore',
      name: 'updateStore',
      component: function(resolve) {
        require(['@/components/updateStore.vue'], resolve)
      }
    },
    {
      path: '/tourl/uploadStoreImage',
      name: 'uploadStoreImage',
      component: function(resolve) {
        require(['@/components/uploadStoreImage.vue'], resolve)
      }
    }
  ]
})
